package com.springboot.study.service.impl;

import com.springboot.study.service.SpringRetryProxy;
import com.springboot.study.service.UserFacade;

/**
 * @Author: guodong
 * @Date: 2021/9/16 13:20
 * @Version: 1.0
 * @Description:
 */
public class TestRetry {

    public static void main(String[] args) throws Exception{

        UserFacadeImpl user = new UserFacadeImpl();
        //SpringRetry代理测试
        SpringRetryProxy springRetryProxy = new SpringRetryProxy();
        UserFacade u = (UserFacade)springRetryProxy.newProxyInstance(user);
        u.query();//失败重试
    }


}
